package com.mooneros.study.designpattern.strategy;

/**
 * 学习枚举类
 * @author mac
 */
public enum StudyLanagueEnum {

    CHINESE("chinese","语文",""),
    MATH("math","数学",""),
    ENGLISH("english","英语","");

    private final String code;

    private final String desc;

    private final String beanName;

    // 私有构造器
    StudyLanagueEnum(String code,String desc,String beanName) {
        this.code = code;
        this.desc = desc;
        this.beanName = beanName;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public String getBeanName() {
        return beanName;
    }

//    public static StudyLanagueEnum of(String code){
//        return Stream.of(values()).filter(e-> e.beanName.equals("1")).count();
//    }



}
